package com.ghck.server.model.response;

import java.util.Collections;
import java.util.List;

import org.apache.commons.collections4.CollectionUtils;

import com.ghck.server.model.TestCategoryDict;

public class TestCategoryDictRes extends TestCategoryDict {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private List<TestQuestionRes> testQuestionResList = null;

	public List<TestQuestionRes> getTestQuestionResList() {
		return testQuestionResList;
	}

	public void setTestQuestionResList(List<TestQuestionRes> testQuestionResList) {
		this.testQuestionResList = testQuestionResList;
	}
	
	@Override
	public void dealWith() {
		super.dealWith();
		if (CollectionUtils.isNotEmpty(testQuestionResList)) {
			Collections.sort(testQuestionResList);
		}
	}

}
